package com.zy.domain;

public class PersonFactory
{
    //静态方法
    /*public static Person PersonCreat()
    {
        System.out.println("静态方法被调用---");
        return new Person();
    }*/
    //非静态方法
    public Person PersonCreat()
    {
        System.out.println("非静态方法被调用---");
        return new Person();
    }
}
